import { commonRequestApi, uploadFileApi } from './request';

//查询内容话题
export const topicListApi = (data: any) =>
  commonRequestApi('/wine-internet-community/content/topic/list', data, 'POST');

// 上传文件
export const uploadApi = (filePath: any, name: string, extra: any) =>
  uploadFileApi('/common-api/upload', filePath, name, extra);

// 发布动态
export const dynamicPublishApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/content/dynamic/publish',
    data,
    'POST'
  );

// 发布视频
export const videoPublishFunApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/content/video/publish',
    data,
    'POST'
  );

// 发布文章
export const articlePublishApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/content/article/publish',
    data,
    'POST'
  );
